package 复数;

class Complex{
    float realPart;
    float imaginPart;
    public Complex(){
        realPart=0;
        imaginPart=0;
    }
    public Complex(float a,float b){
        realPart =a;
        imaginPart=b;
    }
    void sub(Complex c1){
        realPart+=c1.realPart;
        imaginPart+=c1.imaginPart;
        System.out.println("("+realPart+","+imaginPart+")");
    }
}

